package com.coldchain.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 配送订单
 * </p>
 *
 * @author fangliai
 * @since 2018-11-14
 */
@TableName("biz_dispatching_order")
public class BizDispatchingOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单ID
     */
    @TableId("orderId")
    @TableField("orderId")
    private String orderId;

    /**
     * 车型Id
     */
    @TableField("carTypeId")
    private Long carTypeId;

    @TableField("cysId")
    private String cysId;

    /**
     * 温度最高要求
     */
    @TableField("maxOc")
    private Double maxOc;

    /**
     * 车辆温度最低要求
     */
    @TableField("minOc")
    private Double minOc;

    @TableField("driverId")
    private String driverId;
    /**
     * 预约发货时间
     */
    private Date runtime;

    /**
     * 订单类型 1 临时用车 2预约用车 3转单
     */
    @TableField("orderType")
    private Integer orderType;

    /**
     * 起步价
     */
    @TableField("initiatePrice")
    private BigDecimal initiatePrice;

    /**
     * 预计里程
     */
    @TableField("predictKm")
    private Double predictKm;

    /**
     * 订单里程
     */
    @TableField("orderKm")
    private Double orderKm;

    @TableField("exceedKm")
    private Integer exceedKm;
    /**
     * 税费
     */
    private BigDecimal taxes;

    /**
     * 折扣
     */
    private Integer discount;

    /**
     * 超出里程价格
     */
    @TableField("exceedPrice")
    private Double exceedPrice;

    /**
     * 实际金额
     */
    private BigDecimal amount;

    /**
     * 订单总价
     */
    @TableField("totlaPrice")
    private BigDecimal totlaPrice;

    /**
     * 货币单位 (默认为RMB)
     */
    @TableField("priceUnit")
    private String priceUnit;

    /**
     * 0待支付,1待派遣 2待取货 3.待送达 4.上传回单 ,-1订单失败
     */
    @TableField("status")
    private Integer status;

    /**
     * 错误代码
     */
    @TableField("errorCode")
    private Integer errorCode;

    /**
     * 错误信息
     */
    @TableField("errorMsg")
    private String errorMsg;

    /**
     * 订单备注
     */
    private String remark;

    /**
     * 转单ID
     */
    @TableField("turnId")
    private String turnId;

    /**
     * 异常图片
     */
    @TableField("errorLogUrl")
    private String errorLogUrl;

    /**
     * 装车记录多种图片“，”分开
     */
    @TableField("startLogUrl")
    private String startLogUrl;

    /**
     * 创建时间
     */
    @TableField("createTime")
    private Date createTime;


    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Long getCarTypeId() {
        return carTypeId;
    }

    public void setCarTypeId(Long carTypeId) {
        this.carTypeId = carTypeId;
    }

    public Double getMaxOc() {
        return maxOc;
    }

    public void setMaxOc(Double maxOc) {
        this.maxOc = maxOc;
    }

    public Double getMinOc() {
        return minOc;
    }

    public void setMinOc(Double minOc) {
        this.minOc = minOc;
    }

    public Date getRuntime() {
        return runtime;
    }

    public void setRuntime(Date runtime) {
        this.runtime = runtime;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public BigDecimal getInitiatePrice() {
        return initiatePrice;
    }

    public void setInitiatePrice(BigDecimal initiatePrice) {
        this.initiatePrice = initiatePrice;
    }

    public Double getPredictKm() {
        return predictKm;
    }

    public void setPredictKm(Double predictKm) {
        this.predictKm = predictKm;
    }

    public Double getOrderKm() {
        return orderKm;
    }

    public void setOrderKm(Double orderKm) {
        this.orderKm = orderKm;
    }

    public BigDecimal getTaxes() {
        return taxes;
    }

    public void setTaxes(BigDecimal taxes) {
        this.taxes = taxes;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Double getExceedPrice() {
        return exceedPrice;
    }

    public void setExceedPrice(Double exceedPrice) {
        this.exceedPrice = exceedPrice;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getTotlaPrice() {
        return totlaPrice;
    }

    public void setTotlaPrice(BigDecimal totlaPrice) {
        this.totlaPrice = totlaPrice;
    }

    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getTurnId() {
        return turnId;
    }

    public void setTurnId(String turnId) {
        this.turnId = turnId;
    }

    public String getErrorLogUrl() {
        return errorLogUrl;
    }

    public void setErrorLogUrl(String errorLogUrl) {
        this.errorLogUrl = errorLogUrl;
    }

    public String getStartLogUrl() {
        return startLogUrl;
    }

    public void setStartLogUrl(String startLogUrl) {
        this.startLogUrl = startLogUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getExceedKm() {
        return exceedKm;
    }

    public void setExceedKm(Integer exceedKm) {
        this.exceedKm = exceedKm;
    }

    public String getDriverId() {
        return driverId;
    }

    public void setDriverId(String driverId) {
        this.driverId = driverId;
    }

    public String getCysId() {
        return cysId;
    }

    public void setCysId(String cysId) {
        this.cysId = cysId;
    }
}
